package com.fenghuajueli.idiomppp.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;

/**
 * 使用已有数据库时，不要创建表createInDb = false
 */
@Entity(nameInDb = "idiom_ppp",createInDb = false)
public class IdiomPinDbEntity {

    @Id(autoincrement = true)
    @Property(nameInDb = "id")
    private long id;

    @NotNull
    @Property(nameInDb = "content")
    private String content;

    @Generated(hash = 1126666368)
    public IdiomPinDbEntity(long id, @NotNull String content) {
        this.id = id;
        this.content = content;
    }

    @Generated(hash = 1418455256)
    public IdiomPinDbEntity() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
